package com.atguigu.gulimall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 这是会员服务
 *
 * 使用openfeign实现服务之间的远程调用
 * 1.需要导入openfeign的依赖
 * 2.编写一个接口，说明要到注册中心的哪个服务去调用哪个接口的功能，并使用@FeignClient注解申明该接口是远程调用接口
 * 3.启动类上使用@EnableFeignClients并指定自己的basePackages，就是@FeignClient的包
 */
@EnableFeignClients(basePackages="com.atguigu.gulimall.member.feign")
@SpringBootApplication
@EnableDiscoveryClient
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
    }

}
